/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.message.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.message.entity.SystemNotifyMessageDetail;

/**
 * 系统提示信息DAO接口
 * @author lvbo
 * @version 2013-07-16
 */
public interface SystemNotifyMessageDetailDao extends SystemNotifyMessageDetailDaoCustom, CrudRepository<SystemNotifyMessageDetail, Long> {
	@Query("from SystemNotifyMessageDetail where STORE_ID = ?1 AND SNM_ID = ?2")
	public SystemNotifyMessageDetail findByPKId(Long storeId, Long messageId);
}

/**
 * DAO自定义接口
 * @author lvbo
 */
interface SystemNotifyMessageDetailDaoCustom extends BaseDao<SystemNotifyMessageDetail> {

}

/**
 * DAO自定义接口实现
 * @author lvbo
 */
@Component
class SystemNotifyMessageDetailDaoImpl extends BaseDaoImpl<SystemNotifyMessageDetail> implements SystemNotifyMessageDetailDaoCustom {

}
